package com.zhentao.controller;

import com.zhentao.apis.article.ArticleClientApi;
import com.zhentao.model.common.article.dto.ArticleDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApArticleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ArticleClient implements ArticleClientApi {
    @Autowired
    private ApArticleService articleService;
    @Override
    @PostMapping("/api/v1/article/save")
   @ApiOperation("文章添加")
    public ResponseResult saveArticle(ArticleDto dto) {
        return articleService.saveArticle(dto);
    }
}
